package main

import (
	"fmt"
)

func main() {
	m := make(map[string]string)
	m["c"] = "Cyan"
	m["y"] = "Yellow"
	m["m"] = "Magenta"
	m["k"] = "Black"
	m["p"] = "nil"

	fmt.Println(m)

	for k, v := range m {
		fmt.Printf("Key: %s, Value: %s\n", k, v)
	}

	c := m["c"]
	fmt.Println(c)

	c, ok := m["p"]
	if !ok {
		fmt.Println("item p is not exist")
	} else {
		fmt.Println("item p is  exist")
	}

}
